package com.health.db.dao;

import com.health.mapp.service.SpringContextUtil;
import com.health.redis.RedisConstants;
import com.health.redis.RedisOperatiorLogic;

public class ServiceInterface   {
 

	protected static RedisOperatiorLogic redisOperatiorLogic = null;
	public static String getOrderRedisGroupNo(String groupNo) {
		return "ORDER" + RedisConstants.REDIS_GROUP_SEPARATOR + groupNo;
	}

	public static String getNoticeRedisGroupNo(String groupNo) {
		return "NOTICE" + RedisConstants.REDIS_GROUP_SEPARATOR + groupNo;
	}

	public static String getPublicRedisGroupNo(String groupNo) {
		return "PUBLIC" + RedisConstants.REDIS_GROUP_SEPARATOR + groupNo;
	}
  
	
	public static RedisOperatiorLogic getRedisOperatiorLogic()
	{
		if(null==redisOperatiorLogic)
		{
			redisOperatiorLogic=(RedisOperatiorLogic) SpringContextUtil.getBean("redisOperatiorLogic");
		}
		
		return redisOperatiorLogic;
	}
 

}
